from rest_framework import serializers
from home import models
class NavSerializer(serializers.ModelSerializer):
    class Meta:
        model=models.NavModel
        fields="__all__"


# 轮播图列化

class BannerSer(serializers.ModelSerializer):
    class Meta:
        model=models.BannerModel
        fields="__all__"